<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>解构赋值案例</title>
</head>
<body>
  <script>
     const pc=['海尔','小米','联想','方正'];
     [hr,xiaomi,leveno,fz]=pc
      console.log(hr)
      console.log(xiaomi)
      console.log(leveno)
      console.log(fz)
      const getValue=()=>[100,200]
      const [one,two]=getValue()
      console.log(one)
      console.log(two)
  </script>
</body>
</html>